import App from './App'

import store from './store'
// #ifndef VUE3
import Vue from 'vue'
import Moment from './components/moment.js'

import {
	$Toast
} from "@/common/utils.js";


Vue.prototype.$Toast = $Toast;

Vue.filter('formatDate', function(value) {
	return Moment(value).format('YYYY-MM-DD')
});
Vue.filter('formatTime', function(value) {
	return Moment(value).format('HH:mm:ss')
});
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'

export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif